package cn.tj.wenda.cloud.other.service;

import cn.tj.wenda.cloud.other.entity.Books;
import com.github.pagehelper.PageInfo;

public interface BookService {
    /**
     * 取得所有图书一览
     *
     * @return 所有图书
     */
    public PageInfo<Books> getBookList(int page, int limit, String params);

    /**
     * 更新一条图书数据
     *
     * @param book
     */
    public int updateBook(String bookId, Books book) throws Exception;

    /**
     * 添加一条图书数据
     *
     * @param book
     */
    public int insertBook(Books book);

    /**
     * 删除一条图书数据
     *
     * @param bookId
     */
    public int deleteBook(String bookId);
}
